﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace _15.AbstractFactory
{
    class Program
    {
        public static readonly string db = ConfigurationManager.AppSettings["DB"];

        static void Main(string[] args)
        {
            User user = new User();

            IUser iu = (IUser)Assembly.Load("15.AbstractFactory").CreateInstance("_15.AbstractFactory." + db + "User");

            iu.Insert(user);

            iu.GetUser(1);

            Console.ReadLine();
        }
    }
}
